﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartSpace.Workflow
{
    public class WfReceiverType
    {
        public string Code{get;set;}

        private WfReceiverType()
        {
        }

        public readonly static WfReceiverType User = new WfReceiverType{Code = "1"};
        public readonly static WfReceiverType Post = new WfReceiverType { Code = "2" };
        public readonly static WfReceiverType Department = new WfReceiverType { Code = "3" };
        public readonly static WfReceiverType Company = new WfReceiverType{Code = "4"};

        public static bool operator ==(WfReceiverType v1, WfReceiverType v2)
        {
            if(v1.Code == v2.Code)
            {
                return true;
            }
            return false;
        }

        public static bool operator !=(WfReceiverType v1, WfReceiverType v2)
        {
            if (v1.Code != v2.Code)
            {
                return true;
            }
            return false;
        }
    }
}
